package com.oxygen.design.bridge.bean;

import com.oxygen.design.bridge.abstracts.Shape;
import com.oxygen.design.bridge.interfaces.DrawAPI;

/**
 * @author wangjie
 * @title: Circle
 * @description: TODO
 * @date 2022/3/12 10:43 PM
 **/
public class Circle extends Shape {
    private int x, y, radius;

    public Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(radius, x, y);
    }
}
